package com.cloudkinto.dao;

import com.cloudkinto.entity.OrderInputDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.entity.OrderInputProductDo;
import com.cloudkinto.extentity.orderinput.AccumulateOrderCount;
import com.cloudkinto.extentity.orderinput.AnalysisOrderCountDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author 张永远
 * @since 2020-06-08
 */
@Mapper
public interface OrderInputDao extends BaseMapper<OrderInputDo> {
    List<Long> getOrderIdByBillId(Long billId);

    List<OrderInputProductDo> getOrderProduct(Long shopId, Long storageId, Long productId);

    AnalysisOrderCountDto memberAnalysis(Long storageId);

    List<AccumulateOrderCount> memberAnalysisAccumulate(Long storageId);

    List<AccumulateOrderCount> memberAnalysisSingle(@Param("map") Map<String, String> map);

}
